90503: Function test for xfi:concept-label

Documentation

Tests of function xfi:concept-label($source as xs:QName, $linkrole as xs:string?, $labelrole as xs:string?, $lang as xs:string, $xbrlinstance as element(xbrli:xbrl)) as xs:string Please see the examples and formula-testcase-based variations in the companion file, which is in the formula testcase format, 90503 xfi.concept-label formula testcase.xml

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 12-12-2008 at 00:00:00

References

http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670666

Test Case Variations


V-01 Standard label

Documentation

Inputs

  • schema: concept-label-test1.xsd (DTS Discovery starting point) (ID=V01)
  • Function Call: xfi:concept-label( QName('http://abc.com/test','A111'), '', '', 'en')

    (against file V01)

Outputs

  • Result test: $result eq 'a111'

V-02 Terse label

Documentation

Inputs

  • schema: concept-label-test1.xsd (DTS Discovery starting point) (ID=V02)
  • Function Call: xfi:concept-label( QName('http://abc.com/test','A111'), 'http://www.xbrl.org/2003/role/link', 'http://www.xbrl.org/2003/role/terseLabel', 'en')

    (against file V02)

Outputs

  • Result test: $result eq 'a111 Terse Label'

V-03 No label

Documentation

Inputs

  • schema: concept-label-test1.xsd (DTS Discovery starting point) (ID=V03)
  • Function Call: xfi:concept-label( QName('http://abc.com/test','A111'), 'http://www.xbrl.org/2003/role/link', 'http://www.xbrl.org/2003/role/verboseLabel', 'en')

    (against file V03)

Outputs

  • Result test: $result eq ''

Revisions

Name On Details
Herm Fischer 12-12-2008 at 00:00:00 Created the test case.
Herm Fischer 09-09-2010 at 00:00:00 Changed role URIs to strings for cast-less coding and to be similar to fn:QName's $paramURI, an xs:string.